package com.hzit.item.controller;

import com.hzit.item.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@RestController
@RequestMapping("/item")
public class ItemController {
	@Autowired
	private ItemService itemService;

	//1. 根据id生成页面
	@GetMapping("/createPage/{id}")
	public void createPage(@PathVariable("id") Long id) throws IOException {
		itemService.createPage(id);
	}
}
